package com.liveneo.adapter.webservice.client.zte.video;


/**
 *@Title:获取监控和排队预测数据的webservice 接口的统一处理类
 *@Description:  
 *@Author:zhoupan
 *@Since:2015-9-29 上午14:31:47
 *@Version:1.0.0
 *@Copyright (c) 北京朗泰恒盛信息技术有限公司-版权所有
 */
public class ZteEbaseAccessImplServiceManage {

	public static ZteEbaseAccessImplService zteEbaseAccessImplService = new ZteEbaseAccessImplService();
	public static ZteEbaseAccess zteEbaseAccess = zteEbaseAccessImplService.getZteEbaseAccessImplPort();
	//private XStream xs = new XStream();
	private CallProcedureResponse callProcedureResponse;
	private QueryBySqlResponse queryBySqlResponse;
	//private UUID uuid = null;  //每次交易的唯一标识符
	
	public CallProcedureResponse getCallProcedureResponse(CallProcedure request){
		//uuid = java.util.UUID.randomUUID();
		//Method method;
		try {
//			LogUtil.printVideoLog("发送信息-callProcedureRequest-"+ uuid  + "：" + xs.toXML(request));
			//method = zteEbaseAccess.getClass().getMethod("callProcedureRequest", CallProcedure.class);
			//callProcedureResponse = (CallProcedureResponse)method.invoke(zteEbaseAccess, request);
			callProcedureResponse = zteEbaseAccess.callProcedureRequest(request);
//			LogUtil.printVideoLog("返回信息-callProcedureRequest-"+ uuid  + "：" + xs.toXML(callProcedureResponse));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return callProcedureResponse;
	}
	
	public QueryBySqlResponse getQueryBySqlResponse(QueryBySql request){
		//uuid = java.util.UUID.randomUUID();
		//Method method;
		try {
			//LogUtil.printVideoLog("发送信息-queryBySqlRequest-"+ uuid  + "：" + xs.toXML(request));
			//method = zteEbaseAccess.getClass().getMethod("queryBySqlRequest", QueryBySql.class);
			//queryBySqlResponse = (QueryBySqlResponse)method.invoke(zteEbaseAccess, request);
			queryBySqlResponse = zteEbaseAccess.queryBySqlRequest(request);
			//LogUtil.printVideoLog("返回信息-queryBySqlRequest-"+ uuid  + "：" + xs.toXML(queryBySqlResponse));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return queryBySqlResponse;
	}
	
	public static void main(String[] args) {
	}
	
}
